package com.lagou.controller;

import com.lagou.common.ServerResponse;
import com.lagou.service.IIndustryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/industry")
public class IndustryController {
    @Autowired
    private IIndustryService industryService;

    @RequestMapping(value = "/countCityPosition.do",method = RequestMethod.POST)
    @ResponseBody
    public ServerResponse<Map<String,Object>> countCityPosition(){
        return industryService.getCityValue();
    }

    @RequestMapping(value = "/industryTop.do",method = RequestMethod.POST)
    @ResponseBody
    public ServerResponse<Map<String,Object>> industryTop(){
        return industryService.industryTop();
    }

    @RequestMapping(value = "/industryCompare.do",method = RequestMethod.POST)
    @ResponseBody
    public ServerResponse<Map<String,Object>> industryCompare(){
        return industryService.industryCompare();
    }

    @RequestMapping(value = "/topTenSalary.do",method = RequestMethod.POST)
    @ResponseBody
    public ServerResponse<Map<String,Object>> topTenSalary(){
        return industryService.topTenSalary();
    }

}
